﻿using AutoMapper;
using Modules;
using Modules.Attachment;
using Modules.Project;
using PmSoft;
using System.ComponentModel.DataAnnotations;

namespace ManagementApi.Models.Project;

/// <summary>
/// 保证金账户Dto
/// </summary>
public class ProjectGuaranteeExpenditureEditForm
{
    /// <summary>
    ///
    ///</summary>
    public int? Id { get; set; }

    /// <summary>
    /// 项目Id
    ///</summary>
    public int? ProjectId { get; set; }

    /// <summary>
    /// 支出编号
    ///</summary>
    public string? Code { get; set; }

    /// <summary>
    /// 保证金缴纳信息Id
    ///</summary>
    public int? GuaranteePaymentId { get; set; }

    /// <summary>
    /// 动用通知书文号
    ///</summary>
    public string? NotificationLetter { get; set; }

    /// <summary>
    /// 保函（险）单号
    ///</summary>
    public string? GuaranteeLetterNo { get; set; }

    /// <summary>
    /// 收支金额
    ///</summary>
    public decimal? Amount { get; set; }

    /// <summary>
    /// 收支日期
    ///</summary>
    public DateTime? PayDate { get; set; }

    /************* 额外显示字段 ****************/

    /// <summary>
    /// 支付明细表
    /// </summary>
    [Display(Name = "支付明细表")]
    public IEnumerable<ProjectGuaranteeExpenditureDetailForm> Details { get; set; }
}